<?php
class SysConfig_model extends MY_Model{

	private $table = 'config';
	function __construct()
	{
		parent::__construct();
	}

	function getConfig($type){
		$where = array(
				'type'   => $type,
				'status' => 1
			);

		$select = 'letter,number';

		$config = $this->hw_getRecord($this->table,$where,$select);

		return $config;
	}

	function setConfig($where,$field){
		return $this->hw_set_increase($this->table,$where,$field);
	}
}